<template>
  <div class="flx-c">
    <iframe
      :style="{ width: '99%', height: `${winHeight - 224}px` }"
      :src="`/pdf-reader/index.html?file=${encodeURIComponent(pdfUrl)}`"
    >
    </iframe>
  </div>
</template>
<script>
export default {
  props: {
    pdfUrl: {
      type: String,
      default: ''
    }
  },
  watch: {
    pdfUrl: {
      handler (newVal) {
        console.log(newVal, 'newVal')
      },
      deep: true,
      immediate: true
    }
  },
  data () {
    return {
      // pdfUrl: 'https://zfjsfile.sxccol.com/malan/20231114/8LE19ANh.pdf'
    }
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
</style>
